package Day33;

public class Person {
    private String name;

    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Person() {
    }
    public void greet(){
    }
}

class EnglishPerson extends Person{
    public EnglishPerson(String name) {
        super(name);
    }

    public EnglishPerson() {
    }

    @Override
    public void greet(){
        System.out.println("Hello " + super.getName());
    }
}

class Chinese extends Person{
    public Chinese(String name) {
        super(name);
    }

    public Chinese() {
    }

    @Override
    public void greet(){
        System.out.println("你好呀" + super.getName());
    }
}
